package ui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;

import javax.swing.JPanel;

class ButtonPanel extends JPanel{
	private static final long serialVersionUID = 1L;
		
	public ButtonPanel(){
		super();
		Dimension imageDimension =new Dimension(InterfaceSprite.getImage(InterfaceElement.MENU_BACKGROUND).getWidth(), InterfaceSprite.getImage(InterfaceElement.MENU_BACKGROUND).getHeight());
		setPreferredSize(imageDimension);
	}
	
	protected void paintComponent(Graphics g){
		super.paintComponent(g);
		g.drawImage(InterfaceSprite.getImage(InterfaceElement.MENU_BACKGROUND), 0, 0, Color.black, null);
	}
}
